package com.hliu.core.service;

import java.io.Serializable;
import java.util.List;

/**
 * author: 6
 * date: 13-4-8
 */
public interface IBaseMybatisService<T extends Serializable, PK extends Serializable> {
	public T get(String queryKey, PK id);

	public T load(String queryKey, PK id);

	public void save(String queryKey, T t);

	public void update(String queryKey, T t);

	public List<T> list(String queryKey);

	public void deleteObject(String queryKey, T t);

	public void delete(String queryKey, PK id);
}
